package com.abc.app.tests;

import java.net.MalformedURLException;
import java.net.URL;

import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;

public class BaseTest {
	
	protected String browser;
	protected String os;
	
	public BaseTest(String browser, String os) {
		super();
		this.browser = browser;
		this.os = os;
	}
	
	public BaseTest() {
		super();
	}

	protected void waitt(int millis) {
		try {
			Thread.sleep(millis);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
	
	protected RemoteWebDriver getRemoteWebDriver(String url, DesiredCapabilities capabilities){
		RemoteWebDriver driver = null;
		try {
			driver = new RemoteWebDriver(new URL(url), capabilities);
		} catch (MalformedURLException e) {
			e.printStackTrace();
		} 
		return driver;
	}
}
